x86/HVM: vMSI simplification
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Jan 2015 16:29:44 +0000 (17:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Jan 2015 16:29:44 +0000 (17:29 +0100)
commitcb7681bf7065160fee9fcb2778a2433637c4f2a4
tree795b31fa90b7f648470444a04ed4172cd78b3983
parent6c2fd155200259687cab5ba0a2320e1a5c1f6f7b
x86/HVM: vMSI simplification

- struct msixtbl_entry's table_len field can be unsigned int, and by
  moving it down a little the structure size can be reduced slightly
- a disjoint xmalloc()/memset() pair can be converted to xzalloc()
- a pointless local variable can be dropped

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/vmsi.c